<?php

/*
	Class: Commerce_CustomersController

	About: Author
		Rich Joslin

	About: License
		<http://communit.as/docs/license>
*/
class Commerce_CustomersController extends Cts_Controller_Action_Admin {

	/*
		Function: init
	*/
	function init() {
		parent::init();
	}

	/*
		Function: indexAction
	*/
	function indexAction() {
		$request = new Cts_Request($this->getRequest());
		$customers_table = new CommerceMagentoCustomers();
		$tmp_customers = $customers_table->getCustomers();
		$customers = array();
		foreach ($tmp_customers as $tmp_customer) {
			// TODO - get phone/address info for each customer
			$customers[] = $tmp_customer;
		}
// dd($tmp_customers);
		$this->view->customers = $tmp_customers;
	}

}
